<template>
</template>

<script>
import {hzszqtLogin} from '../api/users'
// import  loginMinx from '@/mixins/login-mixns'
export default {
  data() {
    return {

    };
  },
  created(){
    hzszqtLogin({...this.$route.query}).then(res=>{
      const {code,data} = res
      if(code===0){
        console.log(res);
        localStorage.setItem("jyToken", res.data.token);
        res.data.userInfo.fsBrandVO = res.data.fsBrandVO;
        localStorage.setItem("userInfo", JSON.stringify(res.data.userInfo));
        this.$router.replace({ name: "Home" });
      }
    })
  }
}
</script>
<style scoped>

</style>
